<?php
class ControllerPaymentCod extends Controller {
	public function index() {
    	$this->data['button_confirm'] = $this->language->get('button_confirm');

		$this->data['continue'] = $this->url->link('checkout/success');
		
	    $this->template = 'payment/cod.tpl';
		
		return $this->render();
	}
	
	public function confirm() {

        $this->app->model('checkout/voucher', true, true);
	    $this->app->model('account/customer', true, true);
		$this->app->model('localisation/language', true, true);

   		$this->app->model('checkout/order', true, true);
		
		$this->model_checkout_order->confirm($this->session->data['order_id'], $this->setting->get('cod_order_status_id'));
	}
}
?>
